package com.web.exiaodao.remote.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.web.exiaodao.business.entity.TravelTable;
import com.web.exiaodao.remote.vo.TravelTableVo;
import com.web.webstart.base.service.ApiBaseService;
import com.web.webstart.base.util.result.XaResult;
import com.web.webstart.base.exception.BusinessException;


public interface ApiTravelTableService extends ApiBaseService<TravelTableVo,TravelTable>{
        /**
        * 查询最新一条满足条件的实体信息
        * @throws BusinessException
        */
        public XaResult<TravelTableVo>  findLastOne() throws BusinessException;
        /**
         * 查询所有旅游表(游学)
         * @Title: findTravelTableList 
         * @return
         * @throws BusinessException
         */
        public XaResult<Page<TravelTableVo>> findTravelTableList(Double lat2,Double lng2,Pageable pageable,TravelTableVo travelTableVo) throws BusinessException;
        //游学详情
        public XaResult<List<TravelTableVo>> findTravelTableById(Long userId,TravelTableVo travelTableVo) throws BusinessException;
}
